import clsx from 'clsx'
import { twMerge } from 'tailwind-merge'

export const classnames = (...classes) => {
  return twMerge(clsx(...classes));
}


export const sleep = (time) => {
  return new Promise((resolve) => {
    setTimeout(() => {
      return resolve();
    }, time);
  });
}

export const shortAddress = (address) => {
  return address ? `${address.substr(0, 5)}...${address.substr(-4)}` : '';
}
